################################################################################################################################################################
#
#   P105 12v-AUX for external devices
#   P902 +12v            D2             PB25            Model Fan
#   P901 +12v            D12            PD8             Heaterbed
#   P218 +V_Power (P108) D11            PD7             Extruder R Fan
#   P405 +V_Power (P108) D10            PA28 & PC29     Extruder R Heater
#   P403 +V_Power (P108) D9             PC21            Extruder L Fan
#   P404 +V_Heatbed (HB_IN) D8          PC22            Extruder L Heater
#   TERMO0                              PA16            Extruder L Termo sensor
#   TERMO1                              PA24            Extruder R Termo sensor
#   TERMO2                              PA23            Heaterbed Termo sensor
#   TERMO3                              PA22
#
#   X-motor             X-Axis Extruder 0
#   Y-motor             Y-Axis
#   Z-motor             Z-Axis motor left
#   E0-motor            Z-Axis motor right
#   E1-motor            Extruder 0 motor
#   E2-motor            X-Axis Extruder 1
#
#   X_DIR       AD8     D62     PB17    X
#   X_STEP      AD9     D63     PB18    X
#   X_ENABLE    D48     D48     PC15    X
#   Y_DIR       AD10    D64     PB19    Y
#   Y_STEP      AD11    D65     PB20    Y
#   Y_ENABLE    D46     D46     PC17    Y
#   Z_DIR       AD12    D66     PB15    dual_carriage
#   Z_STEP      AD13    D67     PB16    dual_carriage
#   Z_ENABLE    D44     D44     PC19    dual_carriage
#   E0_DIR      D28     D28     PD3     Z1
#   E0_STEP     D36     D36     PC4     Z1
#   E0_ENABLE   D42     D42     PA19    Z1
#   E1_DIR      D41     D41     PC9     DIR Extruder L motor
#   E1_STEP     D43     D43     PA20    STEP Extruder L motor
#   E1_ENABLE   D39     D39     PC7     EN Extruder L motor
#   E2_DIR      D47     D47     PC16    Z
#   E2_STEP     D32     D32     PD10    Z
#   E2_ENABLE   D45     D45     PC18    Z
#
#   S1                  D7      PC23    STEP Extruder R motor
#   S2                  D6      PC24    DIR Extruder R motor
#   S3                  D5      PC25    EN Extruder R motor
#   S4          D3      D3      PC28    SPI CS (Extruder R)
#
# SPI CS:
#   AUX2.5      A6      D60     PA3     E0  Z1                                         -------
#   AUX2.6      A7      D61     PA2     Z   dual_carriage                   X D15 -----| o o |----- D14 Z
#   AUX2.7      AD14    D68     PA1     E1  Extruder L                      Y D69 -----| o o |----- A14 Extruder L
#   AUX2.8      AD15    D69     PA0     Y   Y                   dual_carriage D61 -----| o o |----- D60 Z1
#   AUX2.9      TX3     D14     PD4     E2  Z                                  A5 -----| o o |----- A4
#   AUX2.10     RX3     D15     PD5     X   X                                 GND -----| o o |----- +V_Logic
#   S4          D3      D3      PC28    S4  Extruder R                                 -------
#
#spi_speed:
#   The SPI speed (in hz) to use when communicating with the device.                   -------
#   The default depends on the type of device.                                +5V -----| o o |----- D49
#spi_bus:                                                                    MISO -----| o o |----- MOSI
#   If the micro-controller supports multiple SPI busses then one may         SCK -----| o o |----- SS
#   specify the micro-controller bus name here. The default depends on        GND -----| o o |----* NC
#   the type of micro-controller.                                       D50(MISO) -----| o o |----- D51(MOSI)
#spi_software_sclk_pin:                                                  D52(SCK) -----| o o |----- +V_Logic
#spi_software_mosi_pin:                                                                -------
#spi_software_miso_pin:
#   Specify the above parameters to use "software based SPI". This
#   mode does not require micro-controller hardware support (typically
#   any general purpose pins may be used). The default is to not use
#   "software spi".
#
################################################################################################################################################################


[mcu]
serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_85937313530351411171-if00
#serial: /dev/ttyACM0
#baud:  230400
restart_method: arduino

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 1000                             # 10000
max_accel_to_decel: 5000
square_corner_velocity: 5.0
square_corner_velocity: 5
max_z_velocity: 5
max_z_accel: 100


[include prn_stepper_xl.cfg]
[include prn_stepper_xr.cfg]
[include prn_stepper_y.cfg]
[include prn_stepper_zl.cfg]
[include prn_stepper_zr.cfg]
[include prn_extruder_l.cfg]
[include prn_extruder_r.cfg]
[include prn_fans.cfg]
[include prn_display.cfg]
[include prn_heater_bed.cfg]
[include prn_led.cfg]
[include prn_servo.cfg]
[include prn_buttons.cfg]
[include prn_macro.cfg]
[include macros/*.cfg]

[temperature_sensor SAM3X8E]
sensor_type:                    temperature_mcu
sensor_mcu:                     mcu         #   The micro-controller to read from. The default is "mcu".
#sensor_temperature1:
#sensor_adc1:
#sensor_temperature2:
#sensor_adc2:

############################################
[virtual_sdcard]
path: /home/pi/gcode_files
#path: ~/sdcard

[save_variables]
filename: ~/variables.cfg

[pause_resume]
recover_velocity: 50

[endstop_phase]

[firmware_retraction]
#retract_length: 5
#retract_speed: 30
#unretract_extra_length: 0
#unretract_speed: 30

[input_shaper]
#shaper_type_x: ei
#shaper_type_y: ei
#shaper_freq_x: 55.3
#shaper_freq_y: 53.6

[verify_heater extruder]
#hysteresis: 5
max_error: 300
#heating_gain: 2
#check_gain_time: 30

[gcode_arcs]
#resolution: 1.0
#   An arc will be split into segments. Each segment's length will
#   equal the resolution in mm set above. Lower values will produce a
#   finer arc, but also more work for your machine. Arcs smaller than
#   the configured value will become straight lines. The default is
#   1mm.

#[force_move]
#enable_force_move: True
#   Set to true to enable FORCE_MOVE and SET_KINEMATIC_POSITION
#   extended G-Code commands. The default is false.

########################################
# resonance
########################################

#[mcu rpi]
#serial: /tmp/klipper_host_mcu

#[adxl345]
#cs_pin: rpi:None

#[resonance_tester]
#accel_chip: adxl345
#probe_points:
#    150,100,20  # an example

########################################

#[respond]
#default_type: echo
#   Sets the default prefix of the "M118" and "RESPOND" output to one
#   of the following:
#       echo: "echo: " (This is the default)
#       command: "// "
#       error: "!! "
#default_prefix: echo:
#   Directly sets the default prefix. If present, this value will
#   override the "default_type".

#[filament_switch_sensor filament_sensor]
#switch_pin:
#runout_gcode:
#    BEEP P=1500

#[bltouch]
#sensor_pin:
#control_pin:
#x_offset:
#y_offset:
#z_offset:

[bed_mesh]
mesh_min:                       10, 10
mesh_max:                       390, 390
probe_count:                    6, 6        # not more then 6 if lagrange interpolation used
fade_start:                     1
fade_end:                       10
algorithm:                      lagrange    # lagrange / bicubic
mesh_pps:                       2, 2

#[skew_correction]                          # ortogonal screw correcrion

#[safe_z_home]                              # for bltouch Z homing
#home_xy_position: 200, 200
#z_hop: 5

#[bed_screws]
#screw1:
#   The X, Y coordinate of the first bed leveling screw. This is a
#   position to command the nozzle to that is directly above the bed
#   screw (or as close as possible while still being above the bed).
#   This parameter must be provided.
#screw1_name:
#   An arbitrary name for the given screw. This name is displayed when
#   the helper script runs. The default is to use a name based upon
#   the screw XY location.
#screw1_fine_adjust:
#   An X, Y coordinate to command the nozzle to so that one can fine
#   tune the bed leveling screw. The default is to not perform fine
#   adjustments on the bed screw.
#screw2:
#screw2_name:
#screw2_fine_adjust:
#...
#   Additional bed leveling screws. At least three screws must be
#   defined.
#horizontal_move_z: 5
#   The height (in mm) that the head should be commanded to move to
#   when moving from one screw location to the next. The default is 5.
#probe_height: 0
#   The height of the probe (in mm) after adjusting for the thermal
#   expansion of bed and nozzle. The default is zero.
#speed: 50
#   The speed (in mm/s) of non-probing moves during the calibration.
#   The default is 50.
#probe_speed: 5
#   The speed (in mm/s) when moving from a horizontal_move_z position
#   to a probe_height position. The default is 5.

#[bed_tilt]                                 # Bed tilt compensation
#x_adjust: 0
#   The amount to add to each move's Z height for each mm on the X
#   axis. The default is 0.
#y_adjust: 0
#   The amount to add to each move's Z height for each mm on the Y
#   axis. The default is 0.
#z_adjust: 0
#   The amount to add to the Z height when the nozzle is nominally at
#   0, 0. The default is 0.
# The remaining parameters control a BED_TILT_CALIBRATE extended
# g-code command that may be used to calibrate appropriate x and y
# adjustment parameters.
#points:
#   A list of X, Y coordinates (one per line; subsequent lines
#   indented) that should be probed during a BED_TILT_CALIBRATE
#   command. Specify coordinates of the nozzle and be sure the probe
#   is above the bed at the given nozzle coordinates. The default is
#   to not enable the command.
#speed: 50
#   The speed (in mm/s) of non-probing moves during the calibration.
#   The default is 50.
#horizontal_move_z: 5
#   The height (in mm) that the head should be commanded to move to
#   just prior to starting a probe operation. The default is 5.

#[board_pins]
#aliases:
#    # EXP2 header
#    EXP1_10=<5V>, EXP1_9=<GND>,
#    EXP1_8=PD1,   EXP1_7=PD0,
#    EXP1_6=PC12,  EXP1_5=PC10,     # Slot in the socket on the other side
#    EXP1_4=PD2,   EXP1_3=PC11,
#    EXP1_2=PA8,   EXP1_1=PC9,

#    # EXP1 header
#    EXP2_10=<5V>, EXP2_9=<GND>,
#    EXP2_8=<RST>, EXP2_7=PB10,
#    EXP2_6=PA7,   EXP2_5=PC7,       # Slot in the socket on the other side
#    EXP2_4=PA4,   EXP2_3=PC6,
#    EXP2_2=PA5,   EXP2_1=PA6

############################################

